<template>
  <div id="app">
    <!-- 登录和注册页面全屏显示 -->
    <router-view v-if="isAuthPage" />
    <!-- 其他页面使用BasicLayout -->
    <BasicLayout v-else />
  </div>
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import BasicLayout from '@/layouts/BasicLayout.vue'

const route = useRoute()

// 判断是否为认证页面（登录或注册）
const isAuthPage = computed(() => {
  return route.path === '/user/login' || route.path === '/user/register'
})
</script>
